package user_center.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import user_center.role.pojo.SystemRole;
import user_center.role.pojo.SystemRoleUser;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Ezio.Auditore
 * @since 2022-07-20
 */
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    @Select("select * from system_role_user where user_id = #{userId}")
    List<SystemRoleUser> getUserRoleList(@Param("userId") Integer userId);

}
